Skip to content

fix: remove duplicate code block causing IndentationError in brlogin.py and Fix fractional quantity display and improve Delta Exchange order management#1090

Merged
marketcalls merged 2 commits intomarketcalls:mainfrom
Kalaiviswa:main
Mar 10, 2026

Conversation

@Kalaiviswa
Copy link
Collaborator

@Kalaiviswa Kalaiviswa commented Mar 10, 2026

fix: remove duplicate code block causing IndentationError in brlogin.py


Summary by cubic

Removed duplicate code causing an IndentationError in blueprints/brlogin.py’s broker_callback, consolidating the broker check and correctly handling missing session user for compositedge and rmoney.

Also improved Delta Exchange behavior: preserve fractional crypto quantities in order/trade books, use bulk cancel via DELETE /v2/orders/all with individual fallback, and fix close_all_positions for spot (float sizes, spot symbol lookup, CNC product).

Written for commit 31fcebb. Summary will update on new commits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

…gement

- Preserve fractional crypto quantities in orderbook and tradebook formatting
  instead of truncating to int (e.g. 0.0001 BTC was showing as 0)
- Optimize cancel_all to use bulk DELETE /v2/orders/all with individual fallback
- Fix close_all_positions for spot: float size, spot symbol lookup, CNC product

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Kalaiviswa Kalaiviswa changed the title fix: remove duplicate code block causing IndentationError in brlogin.py fix: remove duplicate code block causing IndentationError in brlogin.py and Fix fractional quantity display and improve Delta Exchange order management Mar 10, 2026
@marketcalls marketcalls merged commit 93dbbb2 into marketcalls:main Mar 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants